<template>
	<view @tap="goPayment">
		点击支付
	</view>
	<u-icon name="home"></u-icon>
</template>

<script>
	export default {
		data() {
			return {
				ordernumber:1,
				payurl:"",
			}
		},
		methods: {
			goPayment(){
				uni.request({
					url:"http://62.234.216.141:4545/cyp/payment/",
					method:"POST",
					header:{
						token:true
					},
					data:{
						orderid:this.ordernumber
					}
				}).then((res)=>{
					console.log(res.data.result);
				})
				
			}
		},
		
	}
</script>

<style lang="scss">

</style>
